package com.oig.base.api.fallback;

import com.oig.base.api.CurrRateService;
import com.oig.sys.base.dto.CurrRateDto;
import com.oig.sys.base.vo.CurrRateVo;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.time.YearMonth;
import java.util.List;

@Slf4j
public class CurrRateServiceFallBackImpl implements CurrRateService {

    @Setter
    private Throwable cause;


    @Override
    public CurrRateVo getCurrRate(String currency, String type) {
        log.error("feign getCurrRate error ", cause);
        return null;
    }

    @Override
    public CurrRateVo addCurrRate(CurrRateDto currRateDto) {
        log.error("feign addCurrRate error ", cause);
        return null;
    }

    @Override
    public List<CurrRateVo> listByCustomsCurrAndYearMonth(List<String> currency, YearMonth yearMonth) {
        log.error("feign listByCustomsCurrAndYearMonth error ", cause);
        return null;
    }
}
